package com.newland.starpos.partner.bean.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuNW
 * @since 2018-09-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_login")
public class UserLogin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "login_id", type = IdType.AUTO)
    private Integer loginId;

    /**
     * 同用户表主键
     */
    private Long userId;

    /**
     * 访问,认证凭证
     */
    private String accessToken;

    /**
     * 登录设备硬件地址
     */
    private String macAddress;

    /**
     * 登录设备ipv4地址
     */
    private String ipAddress;

    /**
     * 是否有效(1:有效,2:无效)
     */
    private Integer effective;

    private LocalDateTime loginTime;


}
